package com.binance.notification.data.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.binance.master.annotations.DefaultDB;
import com.binance.notification.data.models.AbnormalThresholdConfigModel;

@DefaultDB
public interface AbnormalThresholdConfigMapper {

    AbnormalThresholdConfigModel selectByPrimaryKey(@Param("id") Long id);

    int deleteByPrimaryKey(@Param("ids") List<Long> ids);

    AbnormalThresholdConfigModel findBySymbolAndBusinessType(Map<String, Object> param);

    int insert(AbnormalThresholdConfigModel abnormalThresholdConfigModel);

    int insertSelective(AbnormalThresholdConfigModel abnormalThresholdConfigModel);

    int updateByPrimaryKeySelective(AbnormalThresholdConfigModel abnormalThresholdConfigModel);

    List<AbnormalThresholdConfigModel> getAbnormalThresholdConfig(Map<String, Object> param);

    long getAbnormalThresholdConfigCount(Map<String, Object> param);
}
